import java.util.Arrays;

public class Test6 {
    public static void main(String[] args) {
        int[] arr = new int[10];

        for (int i = 0; i < arr.length; i++) {
            arr[i] = i + 1;
        }
        String s = Arrays.toString(arr);
        System.out.println(s);
        fun(arr);
    }
    public static void fun(int[] arr) {
        for (int i = 0; i < arr.length; i++) {
            System.out.print(arr[i] + " ");
        }
    }
}
